package org.dev.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
@EnableEurekaClient // 开启Eureka客户端功能
@EnableCircuitBreaker // 激活熔断器功能
public class MicroServiceCloudProviderDeptHystrix8091Application {

	public static void main(String[] args) {
		SpringApplication.run(MicroServiceCloudProviderDeptHystrix8091Application.class, args);
	}

}

// ===> http://eureka8001.com:8091/dept/hystrix/ok/1      => 线程池： http-nio-8091-exec-1 deptInfo_Ok, id: 1 , 端口号： 8091

// ===> http://eureka8001.com:8091/dept/hystrix/timeout/1 => 系统繁忙请稍后再试！线程池：HystrixTimer-1 deptInfo_Timeout,id: 1 , 端口号： 8091